@extends('layouts.user_home')
@section('content')

<link href="/home/css/appstyle.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/home/js/jquery-1.7.2.min.js"></script>

     
		<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-comment">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">发表评论</strong> / <small>Make&nbsp;Comments</small></div>
						</div>
						<hr/>

						<div class="comment-main">
							<div class="comment-list">
								<div class="item-pic">
									<a href="#" class="J_MakePoint">
										<img src="/upload/images/{{$goods->pic}}" class="itempic">
									</a>
								</div>

								<div class="item-title">

									<div class="item-name">
										<a href="#">
											<p class="item-basic-info"></p>
										</a>
									</div>
									<div class="info-little">
											<span>{{$goods->goods_name}}</span>
											
										</div>
									
										<div class="info-little">
										
											<span>颜色：裸装  尺寸：</span>
										</div>
										<div class="item-price">
											价格：<strong>{{$goods->shop_price}}</strong>
										</div>										
									
								</div>
								<div class="clear"></div>
								<form action="/assess" method="post">
								{{csrf_field()}}
									<div class="item-comment">
										<textarea placeholder="请写下对宝贝的感受吧，对他人帮助很大哦！" name="content"></textarea>
									</div>
									<div class="filePic">
										<input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*" >
										<span>晒照片(0/5)</span>
										<img src="/home/images/image.jpg" alt="">
									</div>
									<div class="item-opinion">
									
									<li><input type="radio" name="level[]" value="0" checked>好评</li>
									<li><input type="radio" name="level[]" value="1">中评</li>
									<li><input type="radio" name="level[]" value="2">差评</li>
									<input type="hidden" name="goods_id" value="{{$goods->goods_id}}">
									<input type="hidden" name="order_id" value="{{$id}}">

										<!-- <li><i class="op1"></i>好评</li>
										<li><i class="op2"></i>中评</li>
										<li><i class="op3"></i>差评</li> -->
									</div>
								</div>
							
							<!--多个商品评论-->						
								<div class="info-btn">	
									<button class="am-btn am-btn-danger" value="submit">发表评论</button>
								</div>	
							</form>

					<script type="text/javascript">
						$(document).ready(function() {
							$(".comment-list .item-opinion li").click(function() {	
								$(this).prevAll().children('i').removeClass("active");
								$(this).nextAll().children('i').removeClass("active");
								$(this).children('i').addClass("active");
								
							});
				     })
					</script>					
					
												
							
						</div>

					</div>

				</div>
		
@endsection